use network_scanner_server_model::{RecordEntry, RecordType, RecordTypeEntry, RecordTypeId};

#[tarpc::service]
pub trait RecordService {
    async fn add_entry(entry: RecordEntry);
    async fn get_types() -> Vec<RecordType>;
    async fn add_type(r#type: RecordTypeEntry) -> Result<RecordTypeId, String>;
}
